package com.morehair.bean.vo.wx;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.morehair.bean.pojo.*;
import com.morehair.bean.vo.admin.GoodsVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Description:
 * Date: 2021/6/9
 * Time: 17:35
 * author: zhang wei
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DetailOfGoodsDataVo {
    private List<SpecificationList> specificationList;//里面的那个直接用SpecificationOfGoods
    private List<GrouponRules> groupon;//直接用GrouponRules
    private List<Issue> issue;//直接用issue
    private Integer userHasCollect;
    private String shareImage;
    private Comment comment;
    private List<AttributeOfGoods> attribute;//直接用AttributeOfGoods
    private Brand brand;//直接用Brand
    private List<ProductList> productList;
    private GoodsVo info;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SpecificationList {
        private String name;
        private List<SpecificationOfGoods> valueList;//直接用SpecificationOfGoods
    }


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Comment {
        private List<CommentDataVo> data;
        private Integer count;
    }


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ProductList {
        private Integer id;
        private Integer goodsId;
        private List<String> specifications;
        private BigDecimal price;
        private Integer number;
        private String url;
        private Date addTime;
        private Date updateTime;
        private Boolean deleted;
    }

}
